package cuiyt.designpattern.responsibility.demo2;

/**
 * @author cyt
 * @create 2020-08-13 14:42
 */
public class BosHandler implements Handler {
    @Override
    public Boolean process(Request request) {
        /**
         * compareTo 小于 返回负值
         *           大于 返回正值
         */
        if (request.getPrice() >= 100) {
            return true;
        } else {
            return null;
        }
    }
}
